package jp.ac.nitech.matlab.najm.client;

import java.io.FileInputStream;
import java.util.Properties;

public class CSetting {
	
	private Properties props;
	
	private void init() {
		props = new Properties();
		try {
			props.load(new FileInputStream("conf/client.conf"));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public String getSetting(String key){
		return this.props.getProperty(key);
	}
	
	
	private static CSetting instance = new CSetting();

	private CSetting() {
		init();
	}

	public static CSetting getInstance() {
		return instance;
	}
}
